package dk.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ReturnData.ResponseData;

import dk.service.ApiService;

@RestController
@RequestMapping("/api")
public class UserController {
	@Autowired
	ApiService apiservice;
@PostMapping("ChangePasswordByToken")
public ResponseData ChangePasswordByToken(String oldpassword,String newpassword,HttpServletRequest request) {
	return apiservice.ChangePasswordByToken(oldpassword,newpassword);
}
}
